// TODO 从tree节点信息构建channel 对象
function getChannelFromNode(treenode) {
	// alert('getChannelFromNode(treenode)');
//	debugObj(treenode);
//	debugObj(treenode.attributes);
//	debugObj(treenode.attributes.loader);
//	debugObj(treenode.attributes.loader.baseParams);
	var data = treenode.attributes;
	// || {};
	var channel = {
		name : treenode.id,
		title : (function(e) {
			var curLine = treenode.text;
			var p = curLine.indexOf('(');
			if (p < 0) {
				return curLine;
			} else {
				curLine = curLine.substring(p + 1);
				p = curLine.indexOf(')');
				curLine = curLine.substring(0, p);
				return curLine;
			}
		})(),
		catalogId : treenode.id,
		contentUrl : data.contentUrl,
		layout : data.layout
		// 默认W
	};
	return channel;
}